package com.sms.po;

/**
 * GroupMemberId entity. @author MyEclipse Persistence Tools
 */

public class GroupMemberId implements java.io.Serializable {

	// Fields

	private long groupId;
	private long memberId;

	// Constructors

	/** default constructor */
	public GroupMemberId() {
	}

	/** full constructor */
	public GroupMemberId(long groupId, long memberId) {
		this.groupId = groupId;
		this.memberId = memberId;
	}

	// Property accessors

	public long getGroupId() {
		return this.groupId;
	}

	public void setGroupId(long groupId) {
		this.groupId = groupId;
	}

	public long getMemberId() {
		return this.memberId;
	}

	public void setMemberId(long memberId) {
		this.memberId = memberId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof GroupMemberId))
			return false;
		GroupMemberId castOther = (GroupMemberId) other;

		return (this.getGroupId() == castOther.getGroupId())
				&& (this.getMemberId() == castOther.getMemberId());
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (int) this.getGroupId();
		result = 37 * result + (int) this.getMemberId();
		return result;
	}

}